<?php
/* Smarty version 3.1.29, created on 2022-08-24 12:57:40
  from "D:\developers\project\vwins\addons\system\template\information.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_6305afc4053668_82846487',
  'file_dependency' => 
  array (
    '2fef4dbc47507384420e7fcee1b50a35cf5868eb' => 
    array (
      0 => 'D:\\developers\\project\\vwins\\addons\\system\\template\\information.tpl',
      1 => 1447898498,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_6305afc4053668_82846487 ($_smarty_tpl) {
if (!is_callable('smarty_function_ddb_pc')) require_once 'D:\\developers\\project\\vwins\\include\\libraries\\smarty\\plugins\\function.ddb_pc.php';
if (!is_callable('smarty_modifier_date_format')) require_once 'D:\\developers\\project\\vwins\\include\\libraries\\smarty\\plugins\\modifier.date_format.php';
echo smarty_function_ddb_pc(array('set'=>"数据表:information,列表名:lists,显示数目:10,排序:indate desc"),$_smarty_tpl);?>

<?php if ($_smarty_tpl->tpl_vars['lists']->value) {?>
<div class="bulletin-overview">
    <div class="items">
		<span>公告：</span>
		<?php
$_from = $_smarty_tpl->tpl_vars['lists']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_placardn_0_saved = isset($_smarty_tpl->tpl_vars['__smarty_foreach_placardn']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_placardn'] : false;
$__foreach_placardn_0_saved_item = isset($_smarty_tpl->tpl_vars['list']) ? $_smarty_tpl->tpl_vars['list'] : false;
$__foreach_placardn_0_total = $_smarty_tpl->smarty->ext->_foreach->count($_from);
$_smarty_tpl->tpl_vars['list'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['__smarty_foreach_placardn'] = new Smarty_Variable(array());
$__foreach_placardn_0_iteration=0;
$_smarty_tpl->tpl_vars['list']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['list']->value) {
$_smarty_tpl->tpl_vars['list']->_loop = true;
$__foreach_placardn_0_iteration++;
$_smarty_tpl->tpl_vars['__smarty_foreach_placardn']->value['last'] = $__foreach_placardn_0_iteration == $__foreach_placardn_0_total;
$__foreach_placardn_0_saved_local_item = $_smarty_tpl->tpl_vars['list'];
?>
			<span class="bulletin-item">
				<a class="normal-link" href="<?php echo $_smarty_tpl->tpl_vars['urlarr']->value[2];?>
information/show/<?php echo $_smarty_tpl->tpl_vars['list']->value['id'];?>
/"><?php echo cut_str($_smarty_tpl->tpl_vars['list']->value['title'],12,0,'...');?>
</a>
				<span class="text text-muted text-extra-small"><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['list']->value['indate'],"%Y-%m-%d");?>
</span>
			</span>
        <?php if (!(isset($_smarty_tpl->tpl_vars['__smarty_foreach_placardn']->value['last']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_placardn']->value['last'] : null)) {?><span class="text text-muted text-extra-small">|</span><?php }?>
		<?php
$_smarty_tpl->tpl_vars['list'] = $__foreach_placardn_0_saved_local_item;
}
if (!$_smarty_tpl->tpl_vars['list']->_loop) {
?>
			<span class="bulletin-item">无</span>
		<?php
}
if ($__foreach_placardn_0_saved) {
$_smarty_tpl->tpl_vars['__smarty_foreach_placardn'] = $__foreach_placardn_0_saved;
}
if ($__foreach_placardn_0_saved_item) {
$_smarty_tpl->tpl_vars['list'] = $__foreach_placardn_0_saved_item;
}
?>
	</div>
</div>
<?php }
}
}
